#######################################################################################
# Sample make file. It is mainly used under MinGW32 environment.
# NOTES:
# 1. When exe "make", if you don't specify the target, the first target will be executed
# 2. BE SURE to provide the dependencies for each *.o object's generation
########################################################################################
# directory setup
SRC_DIR =	./src
TEST_DIR =	./test
TARGET =	all

# make the source
source:
	cd $(SRC_DIR) && $(MAKE) $(TARGET)

test:
	cd $(TEST_DIR) && $(MAKE) $(TARGET)

# the whole target
all:
	cd $(SRC_DIR) && $(MAKE) $(TARGET)
	cd $(TEST_DIR) && $(MAKE) $(TARGET)

clean:
	cd $(SRC_DIR) && $(MAKE) clean
	cd $(TEST_DIR) && $(MAKE) clean